|
|
|
|
|
|
|
· Frame controls are used to group related items on a form. |
|
|
|
|
|
|
|
|
· All controls, including field prompts, should be left justified. Field prompts should be written in mixed case and followed by a semicolon. |
|
|
|
|
|
|
|
|
· The standard spacing and sizing of common controls should be as follows: |
|
|
|
|
|
|
|
|
The control height is 300 twips. |
|
|
|
|
|
|
|
|
The command button width is 1200 twips. |
|
|
|
|
|
|
|
|
The vertical spacing between controls is 60 twips for related items and 90 twips for unrelated items. |
|
|
|
|
|
|
|
|
The border widths (top, bottom, and side) should be 120 twips. |
|
|
|
|
|
|
|
|
Finally, you learned how to write code that sets control colors to the Windows 95 default colors, how to create your own custom color scheme, and how to link your control colors to the color scheme selected with the Windows Control Panel Color applet. |
|
|
|
|
|
|
|
|
1. How do you establish a database name for a data control using Visual Basic code? |
|
|
|
|
|
|
|
|
2. What property do you set to define a table in Visual Basic code? |
|
|
|
|
|
|
|
|
3. What is the main difference between the UpdateControls and the UpdateRecord methods? |
|
|
|
|
|
|
|
|
4. What two values can a bound checkbox produce? |
|
|
|
|
|
|
|
|
5. What property do you use to bind a control to a field in a table? |
|
|
|
|
|
|
|
|
6. What is the standard form color for Windows 95 applications? What is the standard color of the input areas? What is the standard color of display-only text? How are labels aligned? |
|
|
|
|
|
|
|
|
1. Write Visual Basic code to set the properties to open a database (named STUDENTS.MDB) for a data control named Data1. |
|
|
|
|
|
|
|
|
2. Modify the code you wrote in the first exercise and set the properties to open a table (Addresses) in STUDENTS.MDB. |
|
|
|
|
|
|
|
|
3. Modify the code you wrote in the second exercise by binding controls to the data fields in the Addresses table. Include fields for StudentID (which you should declare as cField1), Address (cField2), City (cField3), State (cField4), and Zip (cField5). |
|
|
|
|
|